// 定义通知项数据模型
class NotifyItem {
  final String id;
  final String content;
  final String title;
  final String createdAt;
  final String creatorName;

  NotifyItem({
    required this.id,
    required this.content,
    required this.title,
    required this.createdAt,
    required this.creatorName,
  });

  factory NotifyItem.fromJson(Map<String, dynamic> json) {
    return NotifyItem(
      id: json['id'] as String,
      content: json['content'] as String,
      title: json['title'] as String,
      createdAt: json['createdAt'] as String,
      creatorName: json['creatorName'] as String,
    );
  }
}
